using System;
using System.Data;
using System.Collections;

namespace APP.QUANLY.Entity
{
     /// <summary>
     /// Summary description for NGUOIDUNG_QUYENHAN.
     /// </summary>
     public class NGUOIDUNG_QUYENHAN
    {
              private string _MANGUOIDUNG;
      private Int32 _MACHUCNANG;
      private bool _QUYENXEM;
      private bool _QUYENSUA;
      private bool _QUYENXOA;
      private bool _QUYENTIMKIEM;
      private bool _QUYENXUATFILE;
      private bool _QUYENIN;
        private bool isExisting;
        #region Properties
        public bool IsExisting
        {
              get{return isExisting;}
              set{isExisting = value;}
        }
		      public bool IsMANGUOIDUNGNullable
      { get { return false;  } }
      public string MANGUOIDUNG
      {
         get { return _MANGUOIDUNG; }
         set { _MANGUOIDUNG = value; }
      }
      public bool IsMACHUCNANGNullable
      { get { return false;  } }
      public Int32 MACHUCNANG
      {
         get { return _MACHUCNANG; }
         set { _MACHUCNANG = value; }
      }
      public bool IsQUYENXEMNullable
      { get { return true;  } }
      public bool QUYENXEM
      {
         get { return _QUYENXEM;  }
         set { _QUYENXEM = value; }
      }
      public bool IsQUYENSUANullable
      { get { return true;  } }
      public bool QUYENSUA
      {
         get { return _QUYENSUA;  }
         set { _QUYENSUA = value; }
      }
      public bool IsQUYENXOANullable
      { get { return true;  } }
      public bool QUYENXOA
      {
         get { return _QUYENXOA;  }
         set { _QUYENXOA = value; }
      }
      public bool IsQUYENTIMKIEMNullable
      { get { return true;  } }
      public bool QUYENTIMKIEM
      {
         get { return _QUYENTIMKIEM;  }
         set { _QUYENTIMKIEM = value; }
      }
      public bool IsQUYENXUATFILENullable
      { get { return true;  } }
      public bool QUYENXUATFILE
      {
         get { return _QUYENXUATFILE;  }
         set { _QUYENXUATFILE = value; }
      }
      public bool IsQUYENINNullable
      { get { return true;  } }
      public bool QUYENIN
      {
         get { return _QUYENIN;  }
         set { _QUYENIN = value; }
      }

        #endregion

        #region Constructors
        public NGUOIDUNG_QUYENHAN()
        {
            Reset();
        }
        public NGUOIDUNG_QUYENHAN(NGUOIDUNG_QUYENHAN obj)
        {
            	this._MANGUOIDUNG = obj.MANGUOIDUNG;
	this._MACHUCNANG = obj.MACHUCNANG;
	this._QUYENXEM = obj.QUYENXEM;
	this._QUYENSUA = obj.QUYENSUA;
	this._QUYENXOA = obj.QUYENXOA;
	this._QUYENTIMKIEM = obj.QUYENTIMKIEM;
	this._QUYENXUATFILE = obj.QUYENXUATFILE;
	this._QUYENIN = obj.QUYENIN;
        }
        #endregion

        public void Reset()
        {
                     _MANGUOIDUNG = EmptyValues.v_string;
         _MACHUCNANG = EmptyValues.v_Int32;
         _QUYENXEM = EmptyValues.v_bool;
         _QUYENSUA = EmptyValues.v_bool;
         _QUYENXOA = EmptyValues.v_bool;
         _QUYENTIMKIEM = EmptyValues.v_bool;
         _QUYENXUATFILE = EmptyValues.v_bool;
         _QUYENIN = EmptyValues.v_bool;
        }

         
        #region Hidden

        /*
        private void readProperties(IDataReader reader)
        {
            try
            {
                                if(!(reader["MANGUOIDUNG"] is DBNull))
		{
			obj.MANGUOIDUNG = (string)reader["MANGUOIDUNG"];
		}
                if(!(reader["MACHUCNANG"] is DBNull))
		{
			obj.MACHUCNANG = (Int32)reader["MACHUCNANG"];
		}
                if(!(reader["QUYENXEM"] is DBNull))
		{
			obj.QUYENXEM = (bool)reader["QUYENXEM"];
		}
                if(!(reader["QUYENSUA"] is DBNull))
		{
			obj.QUYENSUA = (bool)reader["QUYENSUA"];
		}
                if(!(reader["QUYENXOA"] is DBNull))
		{
			obj.QUYENXOA = (bool)reader["QUYENXOA"];
		}
                if(!(reader["QUYENTIMKIEM"] is DBNull))
		{
			obj.QUYENTIMKIEM = (bool)reader["QUYENTIMKIEM"];
		}
                if(!(reader["QUYENXUATFILE"] is DBNull))
		{
			obj.QUYENXUATFILE = (bool)reader["QUYENXUATFILE"];
		}
                if(!(reader["QUYENIN"] is DBNull))
		{
			obj.QUYENIN = (bool)reader["QUYENIN"];
		}
//            _MANGUOIDUNG = (reader["MANGUOIDUNG"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["MANGUOIDUNG"];
//            _MACHUCNANG = (reader["MACHUCNANG"] is DBNull)?DalTools.EmptyValues.v_Int32:(Int32)reader["MACHUCNANG"];
//            _QUYENXEM = (reader["QUYENXEM"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENXEM"];
//            _QUYENSUA = (reader["QUYENSUA"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENSUA"];
//            _QUYENXOA = (reader["QUYENXOA"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENXOA"];
//            _QUYENTIMKIEM = (reader["QUYENTIMKIEM"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENTIMKIEM"];
//            _QUYENXUATFILE = (reader["QUYENXUATFILE"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENXUATFILE"];
//            _QUYENIN = (reader["QUYENIN"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["QUYENIN"];
            }
            catch (Exception ex)
            {
                throw new DalException("Failed to read properties from DataReader.", ex);
            }
        } 
        */

        #endregion


        public void Fill(string MANGUOIDUNG, Int32 MACHUCNANG, bool QUYENXEM, bool QUYENSUA, bool QUYENXOA, bool QUYENTIMKIEM, bool QUYENXUATFILE, bool QUYENIN)
        {
                     this._MANGUOIDUNG = MANGUOIDUNG;
         this._MACHUCNANG = MACHUCNANG;
         this._QUYENXEM = QUYENXEM;
         this._QUYENSUA = QUYENSUA;
         this._QUYENXOA = QUYENXOA;
         this._QUYENTIMKIEM = QUYENTIMKIEM;
         this._QUYENXUATFILE = QUYENXUATFILE;
         this._QUYENIN = QUYENIN;
        }
    }
}